package model

import (
	"time"
)

//Profile
type Profile struct {
	ID           string    `bson:"id"`
	FirsName     string    `bson:"firs_name"`
	LastName     string    `bson:"last_name"`
	Email        string    `bson:"email"`
	Password     string    `bson:"password"`
	ImageProfile string    `bson:"image_profile"`
	CreateAt     time.Time `bson:"create_at"`
	UpdateAt     time.Time `bson:"upsdate_at"`
}

//profiles集合
type Profiles []Profile

//判断是否密码相同
func (p *Profile) IsValidPassword(password string) bool {
	return p.Password == password
}
